$(document).ready(function () {
    loginInit();
    dropOut();
    $("#search").click(function () {
        location.reload();
    });
    $(".sort").hover(function () {
        $(".nav-list").stop().slideDown();
    }, function () {
        $(".nav-list").stop().slideUp();
    });
    $(".menu li").mouseover(function () {
        $(this).addClass('on').siblings().removeClass('on');
    });
});
$(document).ready(function () {
    var swiper = new Swiper('.swiper-container', {
        loop: true,
        autoplay: {
            delay: 4000,
            disableOnInteraction: false,
        },
        pagination: {
            el: '.swiper-pagination',
            clickable: true,
        },
    });
    swiper.el.onmouseover = function () {
        swiper.autoplay.stop();
    }
    swiper.el.onmouseout = function () {
        swiper.autoplay.start();
    }
});
